<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>密码修改</title>
    <style>
        .refresh {
            display: inline-block;
            float: right;
        }

        .form-group {
            margin-bottom: 35px;
        }
    </style>
    <link rel="shortcut icon" href="/images/index/logo.ico">
</head>
<body>
<div class="refresh">
    <button class="btn btn-info search" title="刷新" data-url="/adminIndex/user/change"><span
            class="glyphicon glyphicon-refresh"></span></button>
</div>
<div class="" style="margin-bottom: 65px;">
    <ol class="breadcrumb">
        <li><a href="javascript:;">主题案例管理</a></li>
        <li class="active">密码修改</li>
    </ol>
</div>
<form class="form-horizontal" method="post" action="/adminIndex/user/sumit">

    <div class="form-group">
        <label for="pre_pwd" class="col-sm-2 control-label">旧密码</label>
        <div class="col-sm-3">
            <input type="password" class="form-control" name="oldPassword" id="pre_pwd" placeholder="旧密码" required>
        </div>
    </div>
    <div class="form-group">
        <label for="new_pwd" class="col-sm-2 control-label">新密码</label>
        <div class="col-sm-3">
            <input type="password" class="form-control" name="password" id="new_pwd" placeholder="新密码" required>
        </div>
    </div>
    <div class="form-group">
        <label for="odlnew_pwd" class="col-sm-2 control-label">再次输入</label>
        <div class="col-sm-3">
            <input type="password" class="form-control" name="newPassword" id="odlnew_pwd" placeholder="新密码" required>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-default">确定</button>
        </div>
    </div>
    <div style="text-align: center;"><span
            style="color: red;display: inline-block;font-size: 14px;margin-top: 25px;line-height: 28px;"
            class="error_span" class="text-center">${error}</span></div>
</form>

<script>
    $(document).ready(function () {
        $('.search').click(function () {
            var scope = $(this);
            $('.content_right').load(scope.attr('data-url'));
            toast_text('刷新成功', 600);
        });
        $('.breadcrumb a').click(function () {
            if ($(this).attr('data-url')) {
                $('.content_right').load($(this).attr('data-url'));
            }
        });

        $('input').focus(function () {
            $('.error_span').hide();
        });
    });
</script>
</body>
</html>